home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _D383CC42A29E410197380A05FC7BD394 < prev    next >
Encoding:
Text File  |  2004-01-06  |  2.0 KB  |  82 lines

  1. -- Jumper Behaviour SCRIPT
  2. --------------------------
  3.  
  4. AIBehaviour.R2Jumper = {
  5.     Name = "Jumper",
  6.     pathname = "",
  7.  
  8.     Sounds = {
  9.         coverme = Sound:Load3DSound("Sounds/e3ai/ry_cover_me.wav"),
  10.     },
  11.  
  12.  
  13.  
  14.     OnSpawn = function(self,entity )
  15.  
  16.         entity:SelectPipe(0,"quickfix");
  17.     end,
  18.     ---------------------------------------------
  19.     OnActivate = function(self,entity )
  20.  
  21.         entity:SelectPipe(0,"R2Script");
  22.     end,
  23.     ---------------------------------------------
  24.     OnPlayerSeen = function( self,entity )
  25.  
  26.  
  27.     end,
  28.     ---------------------------------------------
  29.     OnEnemyMemory = function(self,entity )
  30.  
  31.  
  32.     end,
  33.     ---------------------------------------------
  34.     OnInterestingSoundHeard = function(self,entity )
  35.  
  36.  
  37.     end,
  38.     ---------------------------------------------
  39.     OnThreateningSoundHeard = function( self,entity )
  40.  
  41.  
  42.     end,
  43.     ---------------------------------------------
  44.     OnNoTarget = function( entity )
  45.  
  46.     end,
  47.     ---------------------------------------------
  48.     OnReceivingDamage = function (self,entity, sender)
  49.     end,
  50.  
  51.  
  52.  
  53.     -- Custom Signals
  54.     -------------------------------------------------
  55.     StartScriptAnimation = function (self,entity, sender)
  56.         entity:StartAnimation(0,"script_s7_1");
  57.     end,
  58.     -------------------------------------------------
  59.     ChangeToStandThere = function (self,entity, sender)
  60.         entity:SelectPipe(0,"standingthere");
  61.     end,
  62.     -------------------------------------------------
  63.     RequestCover = function (self,entity, sender)
  64.         entity:Say(entity.Behaviour.Sounds.coverme);
  65.     end,
  66.     -------------------------------------------------
  67.     ForceMyNewPosition = function (self,entity, sender)
  68.         local newpos = Game:GetTagPoint("EndJump");
  69.         if (newpos) then
  70.             entity:SetPos(newpos);
  71.         end
  72.         entity:StartAnimation(0,"sidle_loop");
  73.         entity:ChangeBehaviour(entity,"IndoorTracker");
  74.     end,
  75.     -------------------------------------------------
  76.     MoveMeToStart = function (self,entity, sender)
  77.         local newpos = Game:GetTagPoint("StartJump");
  78.         if (newpos) then
  79.             entity:SetPos(newpos);
  80.         end
  81.     end,
  82. }